package ar.uba.fi.tonyvaliente.commands;

public class CommandResult {

	public static final CommandResult NOT_RECOGNIZED = new CommandResult(false, false, null);
	public static final CommandResult EXECUTE_SUCCESSFULLY = new CommandResult(true, true, "Execute command successfully");
	
	private boolean recognized;
	private boolean success;
	private String message;
	
	public CommandResult(boolean recognized, boolean success, String message)
	{
		this.recognized = recognized;
		this.success = success;
		this.message = message;
	}

	public boolean isSuccess()
	{
		return this.success;
	}
	
	public boolean isRecognized()
	{
		return this.recognized;
	}
	
	public String getMessage()
	{
		return this.message;
	}
}
